﻿@model IEnumerable<HRWEB.HonoraryTitle>
@using HRWEB.HtmlHelpers
<div style="font-weight:bold;" class="jp-detail-head">荣誉称号</div>
<table class="detail-table-small">
<thead>
@Html.GetTableHeadRow(new string []{"取得时间","称号名称","称号类别","证书下载"})
</thead>
<tbody>
@if(!Model.Any()){
    <tr align="left"><td colspan="2">没有数据可以显示</td></tr>
}
@foreach (var it in Model)
{
<tr class="@if (!it.Confirmed) { <text>jp-table-row-unconfirmed</text> } @if (it.Selected) { <text>jp-table-row-selected</text> }"><td>@Html.FormatDateShort(it.Date)</td><td>@it.Name</td><td>@Html.FormatTDict(it.DictHonoraryTitleGrade)</td><td>@if (it.Filename != null)
                                                                                                                                                                                                                                                                     {<a href="@Url.Content("~/CertFiles/HonoraryTitle/"+@it.Filename)">下载</a>}
                                                                                                                                                                                                                                                                     else {<font>无</font>}</td></tr>    
}
</tbody>
</table>
